#include "ADUObCar.h"

ADUObCar::ADUObCar() {

}

ADUObCar::~ADUObCar() {

}

ADUObCar* ADUObCar::CreateObCarBYFileName(const char* filename) {
	ADUObCar* obcar = new ADUObCar();
	if (obcar && obcar->initWithFile(filename)) {
		obcar->autorelease();
		return obcar;
	}
	CC_SAFE_DELETE(obcar);
	return NULL;
}

void ADUObCar::onSpeedchanged(int newSpeed) {
	roadSpeed = newSpeed;
	run();

}
int ADUObCar::getSpeed() {
	return roadSpeed / 2;
}

